package com.share.cloudStorage.logs.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("log")
@AllArgsConstructor
@NoArgsConstructor
public class Logs {
    private Integer logId;
    private Integer userId;
    private String logTime;
    private String logInfo;
    @TableField(exist = false)
    private String username;

    public Logs(Integer userId, String logInfo) {
        this.userId = userId;
        this.logInfo = logInfo;
    }
}
